#include "AG.h"

int main(int argc,char *argv[]){
	extern vector<things> set; 
	AG A;
	loadThings("things.txt");
	vector<bool> R = A.evolution();
	double gain = 0, weight = 0; 
	for(unsigned int i=0;i<R.size();i++){
		if(R[i]){
			gain += set[i].g;
			weight += set[i].w;
			cout<<set[i].name<<endl;
		}
	}
	cout<<"Ganancia: "<<gain<<" con un peso total: "<<weight<<endl;
	return 0;
}
